package edu.hunau.cxb18.spring.setter;

/**
 * @author hb
 * @create 2020-03-10 10:48
        */
public class Moo {
    private int id;
    //必须提供setter方法
    private Noo nooSub;

    public Moo(){

    }

    public Moo(int id,Noo noo){
        this.id=id;
        this.nooSub=noo;
    }

    @Override
    public String toString() {
        return "Moo{" +
                "id=" + id +
                ", noo=" + nooSub.getClass() +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Noo getNoo() {
        return nooSub;
    }

    public void setNoo(Noo noo) {
        this.nooSub = noo;
    }
}
